package com.imooc.settlement.dao;

import com.imooc.settlement.po.SettlementPo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

/**
 * ProjectName settlement
 *
 * @author xieyucan
 * <br>CreateDate 2022/9/20 20:24
 */
@Mapper
@Repository
public interface SettlementDao {

    @Insert("insert into settlement (order_id,transaction_id,amount,status,date) values(#{orderId},#{transactionId},#{amount},#{status},#{date})")
    @Options(useGeneratedKeys = true,keyProperty = "id")
    void insert(SettlementPo settlementPo);
}
